# -*- coding: utf-8 -*-
import logging
import sys

logging.basicConfig(
    level=logging.DEBUG, stream=sys.stdout, datefmt='%H:%M:%S',
    format='%(asctime)s.%(msecs)03d %(levelname)8s %(funcName)16s %(filename)16s:%(lineno)3d %(message)s',
)

# 打印SQL脚本
logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)

username = 'chench'
password = 'hn@cch'
host = 'localhost'
port = 3306
db = 'sqlalchemy_db'

db_url = f'mysql+pymysql://{username}:{password}@{host}:{port}/{db}'

if __name__ == '__main__':
    pass
